import 'package:flutter/material.dart';

import 'package:get/get.dart';
import 'package:signage/widgets/custom_appbar.dart';

import '../controllers/text_show_controller.dart';

class TextShowView extends GetView<TextShowController> {
  const TextShowView({super.key});
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color.fromRGBO(243, 244, 246, 1),
      appBar: CustomAppBar(
        title: controller.title.value,
        backgroundColor: Colors.white,
      ),
      body: SingleChildScrollView(
        child: Container(
          margin: const EdgeInsets.all(16),
          padding: const EdgeInsets.all(16),
          decoration: BoxDecoration(
            color: Colors.white,
            borderRadius: BorderRadius.only(
              topLeft: Radius.circular(8),
              topRight: Radius.circular(8),
            ),
          ),
          child: Text(
            controller.text.value,
            style: TextStyle(
              fontSize: 14,
              fontWeight: FontWeight.w400,
              letterSpacing: 0,
              color: Color.fromRGBO(102, 102, 102, 1),
            ),
          ),
        ),
      ),
    );
  }
}
